const baseURL = 'http://127.0.0.1:5000'
export function getClassList(){
	return uni.request({
		url:baseURL+`/user/getClassList`,
		method:'get'
	})
}
 export function getFoodList(){
	 return uni.request({
		 url:baseURL+`/user/getFoodList`,
		 method:'get'
	 })
 }
 //用户下单
 export function order(car){
	 return uni.request({
	 	url:baseURL+`/user/order`,
		method:'post',
		data:{
			car:car
		}
	 })
 }
 //获取用户订单记录
 export function getHistoryOrder(userName){
	 return uni.request({
	 	url:baseURL+`/user/getHistoryOrder?userName=${userName}`,
		method:'POST'
	 })
 }
 //删除历史订单记录
 export function deleteHistroyOrder(id){
	 return uni.request({
	 	url:baseURL+`/user/deleteHistroyOrder?id=${id}`,
		method:'get'
	 })
 }
 //用户发表评价
 export function userJudge(judgeOptions){
	 return uni.request({
	 	url:baseURL+'/user/userJudge',
		method:'POST',
		data:{
			judgeOptions
		}
	 })
 }
 
 //查询所有的用户评价
 export function queryUserJudgeList(){
	 return uni.request({
	 	url:baseURL+'/user/queryUserJudgeList',
		method:'get'
	 })
 }